# Contributor: omni <omni+alpine@hack.org>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=podman-tui
pkgver=0.5.0
pkgrel=0
pkgdesc="Terminal user interface for Podman v4"
url="https://github.com/containers/podman-tui"
license="Apache-2.0"
arch="all !riscv64 !s390x" # podman (netavark & aardvark-dns -> rust/cargo)
makedepends="go gpgme-dev linux-headers btrfs-progs-dev lvm2-dev"
depends="podman"
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/containers/podman-tui/archive/v$pkgver.tar.gz"

export GOPATH="$srcdir"
export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw"

build() {
	go build -v .
}

package() {
	install -Dm0755 "$pkgname" -t "$pkgdir"/usr/bin
}

sha512sums="
59a7945cb4a787871d54a806a26aac8273f3eec0971c7fecacb905f689e9466b98fbf4586d58b99bd498bc43bbec4eb776ceb45456c5563cb3bec692e404a0c0  podman-tui-0.5.0.tar.gz
"
